/* Author: Lenny Morandin / 805507

*/
function gmapInitialize() {
	var myOptions = {
		center: new google.maps.LatLng(45.435864, 12.33902),
		zoom: 14,
		mapTypeId: google.maps.MapTypeId.HYBRID
	};
	mapObject = new google.maps.Map(document.getElementById("map_canvas"),
		myOptions);
}

$(document).ready(function(){
	var mapObject;
	
	// Google Map initialization
	gmapInitialize();
	
	// window resize management
	$(window).resize(function(){
		$('#leftCol, #rightCol').height($(window).height() - $('#pageHeader').height()).css('top', $('#pageHeader').height());
	});
	$(window).resize();
	
	// empty <a> elements
	$('a[href="#"]').click(function(evt){
		evt.preventDefault();
	});
	
	// add video
	$('#showForm').click(addMarker);
});

function addMarker(){
	var marker = new google.maps.Marker({
		position: new google.maps.LatLng(45.434659,12.338848),
		map: mapObject,
		title:"Hello World!",
		draggable: true
	});
}